Skip to content

fix(ci): compare release PR author against REST-style bot login - #481

Merged
sebastiancorrea81 merged 1 commit into
mainfrom
fix/auto-merge-release-author-check
Aug 7, 2026
Merged

fix(ci): compare release PR author against REST-style bot login#481
sebastiancorrea81 merged 1 commit into
mainfrom
fix/auto-merge-release-author-check

Conversation

@sebastiancorrea81

Copy link
Copy Markdown
Collaborator

Problem

Follow-up to #479. Confirmed live right after #479 merged: the new find-pr job ran and correctly located PR #476, but skipped it with "Open PR doesn't match expected author/label", leaving the release PR un-merged.

Root cause: gh pr list --json author is GraphQL-backed and represents github-actions[bot] as "app/github-actions", not "github-actions[bot]". The comparison in find-pr (and the reusable workflow's release_pr_author default, and the old pull_request-triggered version's github.event.pull_request.user.login) all expect the REST-style "github-actions[bot]".

Fix

Switch the PR lookup from gh pr list --json author to gh api repos/{repo}/pulls?state=open&head={owner}:release-please--branches--main (REST), whose user.login is "github-actions[bot]" as expected. Verified locally against the real PR #476 before pushing.

Test plan

  • Merge this PR.
  • Confirm in Actions that the next auto-merge-release-pr (workflow_run) run resolves pr_number for PR chore(main): release 6.10.0 #476 and actually merges it this time.
  • Confirm the tag/GitHub Release gets published without human intervention.

🤖 Generated with Claude Code

The find-pr job introduced in #479 used `gh pr list --json author`, whose
--json output is GraphQL-backed and represents github-actions[bot] as
"app/github-actions" — not "github-actions[bot]" like the REST API's
user.login (what the old pull_request-triggered version, and the reusable
workflow's release_pr_author default, compare against). Confirmed live:
the first real workflow_run after #479 merged found PR #476 but skipped it
with "Open PR doesn't match expected author/label", leaving it unmerged.

Switch the lookup to `gh api .../pulls` (REST) so user.login matches
github-actions[bot] as expected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sebastiancorrea81
sebastiancorrea81 merged commit 75a16ea into main Aug 7, 2026
45 checks passed
@sebastiancorrea81
sebastiancorrea81 deleted the fix/auto-merge-release-author-check branch August 7, 2026 16:54
sebastiancorrea81 added a commit that referenced this pull request Aug 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[6.10.0](v6.9.0...v6.10.0)
(2026-08-07)


### Features

* **service_definition:** forward link spec fields from the template
([#477](#477))
([2994e6b](2994e6b))


### Bug Fixes

* **ci:** compare release PR author against REST-style bot login
([4e00860](4e00860))
* **ci:** compare release PR author against REST-style bot login
([#481](#481))
([75a16ea](75a16ea))
* **ci:** trigger release PR auto-merge via workflow_run instead of
pull_request
([e7eff48](e7eff48))
* **ci:** trigger release PR auto-merge via workflow_run instead of
pull_request
([#479](#479))
([80738de](80738de))
* **eks:** support an optional aws_profile for the kubernetes provider
exec plugin
([#471](#471))
([ccb2f5f](ccb2f5f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
sebastiancorrea81 added a commit that referenced this pull request Aug 7, 2026
Small, low-risk change used as a real trigger to test the full
post-merge automation chain (#479, #481,
nullplatform/actions-nullplatform#89) end-to-end on a clean cycle: this
PR's merge → release-please PR → auto-merge (workflow_run + REST author
check + --admin) → tag/release, with no manual step in between.

Root README's usage example pinned `infrastructure/aws/vpc` to
`v1.56.1`, several major versions behind the current `v6.10.0` — updated
so copy-pasting the example doesn't point at a stale tag.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant